package com.chenjie.executor.day06;

public class Main1 {
    public static void main(String[] args) {
        //获取当前正在执行的线程
        Thread thread = Thread.currentThread();
        //输出线程优先级大小
        System.out.println(thread.getPriority());
        //设置线程优先级
        thread.setPriority(Thread.MAX_PRIORITY);
        //输出线程优先级大小
        System.out.println(thread.getPriority());
    }
}
